package com.dalin.platform.autocode.action;

import com.dalin.framework.action.StrutsTwoAction;
import com.dalin.platform.autocode.service.AutocodeService;
import com.dalin.platform.autocode.vo.GlbGeneratorKeyVo;
/*****************************************************************************
 * @content: 类信息                                                   *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-06-18                                                     *
 * @modDate: 2010-06-18                                                     *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class GlbGeneratorKeyAddModAction extends StrutsTwoAction{
	 private AutocodeService autocodeService; // 
    private GlbGeneratorKeyVo vo; // 





    public String execute() throws Exception {
        super.printInfo("", "===== this action begin");
        if (vo.getGenId() == null) {
        	autocodeService.addGlbGeneratorKey(vo);
        } else {
        	autocodeService.modifyGlbGeneratorKey(vo);
        }
        setResContent("{success: true, info: ''}");
        super.printInfo("", "===== this action end");
        return null;
    }

    public AutocodeService getAutocodeService() {
		return autocodeService;
	}

	public void setAutocodeService(AutocodeService autocodeService) {
		this.autocodeService = autocodeService;
	}
    public GlbGeneratorKeyVo getVo() {
        return vo;

    }

    public void setVo(GlbGeneratorKeyVo vo) {
        this.vo = vo;

    }

}
